﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CIRDiagnoseDevice
{
    public partial class SetSensThreshold : Form
    {
        public SetSensThreshold()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            float value = 0;
            float.TryParse(textBox1.Text.Trim(), out value);
            if (value == 0)
            {
                MessageBox.Show("输入数据有误就该输入纯数字，请重新输入 ！");
                return;
            }
            else
            {
                MainFrm.MotherFrm.sensThreshold = value;
                this.Close();
            }
        }
    }
}
